package com.feng.leetcode;

public class Ninth {
    public static void main(String[] args) {
        System.out.println(isPalindrome(-121));
    }

    public static boolean isPalindrome(int x) {
        StringBuilder s = new StringBuilder(x + "");
        s.reverse();
        System.out.println(s);
        return s.toString().equals(x + "");
    }
}
